Refactor and consolidate serializer option setup