Remove duplicated code used for determining pick colors