Extracting winston-memory to a separate module