Extracting domain object decorators into a component