Removed code duplication in Zookal_TableOpt_Helper_Data
Code Style and some refactorings