Reduce duplication in Core::Object