public function removeField($name)
    {
        if (($field = $this->getField($name)) === null) {
            return false;
        }

        foreach ($field->getAliases() as $alias) {
            unset($this->fieldAliases[$alias]);
        }
        unset($this->fields[$name]);
        return true;
    }