Use style with fewer parentheses
Move generated file paths into methods

- Extract file and directory paths into methods.
- Use lighter parentheses style