Implement renameInstruction.