Commit template method pattern