CRM-13966 - Refactor out and remove crmasmselect