Tinebase_Core - remove redundant code