Refactored Git commit message prefix extension code.