It's probably best to do it in the Extension class - that way, it throws the error when trying to configure the bundle (during deployment).  If it is in this class, it might not get caught until the app is in production.