Separating request handling into separate file