Move name.toLowerCase() into association_key function