private static function rewriteParameterAndType(
        array $parameters,
        array $types,
        $parameter,
        array $newPlaceholders
    ) {
        // Extract the fridge type.
        $type = static::extractType($types[$parameter]);

        // Iterate new placeholders to rewrite each one.
        foreach ($newPlaceholders as $newPlaceholderIndex => $newPlaceholder) {

            // Determine the new parameter.
            $newParameter = substr($newPlaceholder, 1);

            // Rewrites parameters and types.
            $parameters[$newParameter] = $parameters[$parameter][$newPlaceholderIndex];
            $types[$newParameter] = $type;
        }

        // Remove rewritten parameter and type.
        unset($parameters[$parameter]);
        unset($types[$parameter]);

        return array($parameters, $types);
    }