Refactor factory to provider