Fixes #5518 - Repository.enabled no longer exists