Refactored assembly resource processing in profiles.