Moving logic from index.php into proper Slackbot object implementing HttpKernelInterface