Refactor SET_CONTROLLER_INFO code