Trying to refactor Robot to reduce duplication