Move some variables out of function call
Move some variables out of function call

I noticed that these variables didn't depend on anything in the class or
function call, so I am moving them up to the top level.
Micro-optimization.

tudorilisoi/react-simple-pie-chart,brigade/react-simple-pie-chart