The logic of the requests should be implemented outside of the handler methods, in order to facilitate testing.