Refactor of request to remove some repetition