Removes useless code from Tab Manager