Moving from FrontController to getService function