Making code less complex in parse_adapters