Move definition of merge commit before we use it