So, this should be on the representor to handle this, not in the serializer. So, this should be implemented in the #options method in the semantic decorator therefore (which would need to override the default options). At that point, you would not need to pass in options as you do in the methods below.