Docstring
Standardize that
Transform getSiteFromTab to helper