Use isPackageActive when checking activation/deactivation
Whitespace
Reorganize SmartTabsSpec