Move capitalize definition to DefaultResolver file, where it is used.