Refactoring of dealers controller.