Refactoring: extract getModelFromSerializedId($serializedId).