Various refactorings

Useless assignment to variable - `post`.