Refactored disabled and readonly abilities.