clean up constant for attribute code to use centralized one in helper