refactor out 18 bit settings

Signed-off-by: Stephano Cetola <scetola@reachtech.com>