Extract url param handling into its own module