Extract methods for readability.

Signed-off-by: Nikhil Gajwani <ngajwani@pivotallabs.com>