Automatically detect sandbox environment
Removed obsolete checkbox
Duplicate code refactored into a separate function
Merge branch 'feature/sandbox-detection'