And one more thing,
For cleaner and more proper reuse specifically in API services, you can use configs and treat them as reusable blocks.
Regards, Sergey