Migrated constants from #defines to enums.