Given that we are only interested in what happens on shell, we would often take the quotient by the ideal generated by the Euler–Lagrange equations, or in other words, consider the equivalence class of functionals/flows which agree on shell.