Abstract grid, tree, and bush componments into reuseable code in component.js.