Refactor LCD and IR receiver