Remove call-time pass-by-reference parameters from class-bonsai.php