I am agree with you first comment of moving configuration in lib/camera .
But I am not sure using configuration function for each focus mode is right. Because for different devices supported focus mode will be different and in configuration we are creating object of supported focus Modes with it's enable disable APIs attached.