Move RefUpdate, GitService, branch_protection check, and forward function from handle.rs into separate modules.