Refactor code broker/ _form.php