Introduced RestControllerAssistant to extract code that is re-used in
various controllers.