Replace methods on the controllers and configurate services.