Refactor new PrototypedObject