Refactoring to extract constants to resource file