Extract request mock as a module