[readability] move declaration closer to usage