Refactoring regarding to request urls