Extract flight query functionality to a service injected via Spring