Move MockService out from test.