BaseTools: make static functions when self is not needed