Factor out name code to utility method. MJ-422