Add a new REST API service class to keep things DRY
Move the various sections to their own concerns, so they're easier to find and maintain