Avoid passing server to the controller each time