I don't think I understand. This structure seems quite parallel to https://github.com/dysania/onebox/blob/master/lib/onebox/engine/github_commit_onebox.rb