MIPS: Refactor 'clear_page' and 'copy_page' functions.