Refactoring of use of sound resources.