Refactor man utility functions.