[dev] fix namespace newlines sniff ignoring trait
refactor ControlTrait