Cleaned up config.php and moved logic to bootstrap.php