Refactor alist resample commands