(maint) Extract heredoc fixtures from memory spec