Simple service factory to help with REST APIs