Cleanup and put laravel bootstrap code into a trait to fix duplication