'Herbs::Memory': refactorisation