Generate names constants, remove alias from most relationships,