Relocate initializeDataSource() method.