Requests: Factoring validity check of requests out in separate subprograms