Abstracting out some of the settings

Signed-off-by: Kenneth Lim <kenlimmj@gmail.com>