I like this refactor, but "createCommand" is a bit generic, maybe "createFindElementCommand" or something like that?