Remove unnecessary view helper. Create specs for encoding and decoding params