Define framework tree. Also add the prepare_form() util.