Preparing serializers to be spring beans.