refactoring to make use of serializer filters from the updated ActiveModel::Serializers library