protected function filterTransUnitData($unitsData)
    {
        $cleaned = array();

        foreach ($unitsData as $unit) {
            /* @var $unit TransUnit */
            $transUnit = array(
                'id'           => $unit['Id'],
                'key'          => $unit['Key'],
                'domain'       => $unit['Domain'],
                'translations' => array(),
            );

            foreach ($unit['Translations'] as $translation) {
                $transUnit['translations'][] = array(
                    'locale'  => $translation['Locale'],
                    'content' => $translation['Content'],
                );
            }

            $cleaned[] = $transUnit;
        }

        return $cleaned;
    }