Active layers check moved to factory.

This way we don't have to list their names
in two different classes. It has also been
implemented with a Set, which is slightly
better looking and cleaner.
NavTableForms updated.