Define helper `require_component'.