Move post actions into their own class.

Change-Id: I56936c41e0dbee39a93d7dcecfc5ad04ecd8f801
Merge "Move post actions into their own class."