Code restructuring: one data source shared by all calls

Signed-off-by: Aneesh <aneesh@thegeek.in>