Remove problematic use of $app['request']