Move applying input adapter plugins code to input adapter