Simplify drone code.