Remove unused imports.
Additional validation when created connections between directed
features.