Refactoring the code to extenalize specific URL as contants