Refactored undefined member message generation.