Use a helper subroutine to convert stories between a hashref and an arrayref