Ths commit change the pivot/list function to defined them in a constant, and add this constant in the function registry, rather than define the function directly in the registry. This allow for re-using the functions code and call it from other functions. Task 3318865 Part-of: odoo/odoo#128981