Ensure component is allowed to only pass one naming rule.

Fixes #12.