reusable code...? I'll make it follow the convention from `insertPull`, but it's really close to copy-pasta.