Extracted functions for case conversion to a separate component.