Extract methods related to request building into its own module