Remove norm_by_metadata function and assoc tests