Remove redundant code. Modified configclass to use extractValue.