Indeed, I think initially I was referencing some variables at a higher scope so it had to be there, but no need anymore