Remove unused ShouldBeTopLevel method