Refactor getRegisterNumber to OperandUtils