Suggest breaking this out into two enable/disable functions since the two paths don't share any code.