Merge all functions into one for testing
Remove extension_enabled variable test
Refactor disabled function into two functions