inject post request factory instead of manually creating it