Refactor paths. Introduce webpack aliases to get rid of relative references in code base.