Use metadata from object instead of static getter