Restrict joining inside vehicle. Remove duplicate code.