Exploiting Contextual Structure to Generate Useful Auxiliary Tasks