Simplify the rest controller.