[Front-end] Refactored StrategyFactory into a sepearte module.