Extract a function fetchCommandBuilder