Refactored commit inspector