Refactoring of abc.