Refactor deck and pile to extend the same parent.