Refactor for scaling, minimum seam points, and open/closed principle
using good file structures and design patterns.