[Truffle] Reduce duplication in BasicObject#method_missing.