Refactor constants.java