protected function replaceRefs($key, &$scope)
    {
        if (is_array($scope)) {
            foreach (array_keys($scope) as $subkey) {
                $this->replaceRefs(
                    implode($this->delimiter, [$key, $subkey]),
                    $scope[$subkey]
                );
            }
        } else {
            $this->getByRef($key, $scope);
        }
    }