Also, given you re use this, I would dry this out as a method in helpers like, #build_sample_serializer