Move some code from start.php to the service provider.