Cleaner way of setting up input observers