WIP: Refactor constants (comments welcome)

Can you write more on f1 f2, like what you did for f0? What's the equation or how did you do that?