Refactoring of REST service base class