Remove unneeded subroutine from `mergePages`.