Encapsulate alias logic in resolveClassName()