extract SnapshotOptimization into separate class DRY code a little bit
extract SnapshotOptimization into separate class
DRY code a little bit

SimenB/webpack,webpack/webpack,webpack/webpack,SimenB/webpack,webpack/webpack,SimenB/webpack,SimenB/webpack,webpack/webpack