Add common check for extension active flag and use common helper object