private static function applyCallbacks($value, array $callbacks)
    {
        foreach ($callbacks as $callback) {
            $value = call_user_func($callback, $value);
        }

        return $value;
    }