It has users, but
As an internal user I want a more generic API So I can do more generic things
Is not a real user story :) Neither is:
As a CFO I want the API to be rewritten in Rust So I can pay less for hosting
They might be phrased like one, but user stories are meant to address specific user tasks or journeys, which doesn't work well for generic improvements.