Extract default factory providers to classes