Fixed redundancy in getOptions method of Serializer class