Refactor requires to modularize dependendencies.

Signed-off-by: Phan Le <ple@pivotallabs.com>