Simplify input container autodetection