Refactor: writing of expressions (more)
Refactor: writing of expressions (more)

- Move functions closer to where they are mostly used.
- Assign names to parameters of function prototypes.
- Rearrange function prototypes to match the order of the implementations.
- Delete commented out function.

wormt/bcc,wormt/bcc