Refactor to allow other listeners to post-commit hook, not just the standard one