Split LiteralDecoder in two classes.