REVIEW-3554: use action instead of closure to configure component metadata