Move the container fetcher function to utils

Change-Id: If4d340df7b4627a5290daaed9fa650d704dc6d82
Merge "Move the container fetcher function to utils"