It doesn't look like this function is being used outside of this file, so it doesn't have to be publicly exposed. I can see reasons for wanting to make it available globally though, but then the enabled check would have to be present in this function as well.