Refactoring of materials