A component for a drug delivery device comprises a key validation part and a safety part. The key validation part is configured to interact with a key part of another component of the drug delivery device during the assembly of the drug delivery device. In order to support the use of matching components, the safety part is configured to have a different impact if the key part is matched to the key validation part compared to if the key part is not matched to the key validation part.