It’s a nice metaphor, but hopefully we all know what bad abstractions look like.
If you have to refer to the API documentation frequently, even for simple stuff, I don’t see how that’s adding any value.
If you have 100 lines of code but you can expose the logic in 30 lines, that’s probably worth the refactor. However, making your code 3 lines instead of 10 isn’t very important.