from abc import ABC, abstractmethod
from typing import Dict, Any


Config = Dict[str, Any]

Strategy = Dict[str, Dict[str, str]]


class Factory:
    def __init__(self, config: Config = None) -> None:
        self.config = config or {}

    def extract(self, method: str):
        return getattr(self, "{0}".format(method), None)

from abc import ABC, abstractmethod
from typing import Dict, Any


Config = Dict[str, Any]

Strategy = Dict[str, Dict[str, str]]


class Factory:
    def __init__(self, config: Config = None) -> None:
        self.config = config or {}

    def extract(self, method: str):
        return getattr(self, "{0}".format(method), None)
