Refactor denied commands