private function runAjaxRequest()
    {
        // Ajax request.
        // @codingStandardsIgnoreStart - We need POST access here.
        if (!($_POST && Environment::get('isAjaxRequest'))) // @codingStandardsIgnoreEnd
        {
            return null;
        }

        $ajax = new Ajax(Input::post('action'));
        $ajax->executePreActions();

        return $ajax;
    }