Refactor mutation functions out into Mutation
Fix trees test