Refactored code to have a separate representation for ATM and Branches and also to do the correct call with API to either fetch branches or ATM or both