Refactoring patch metadata parsing
Use commit subject line for category, not filename