Factored out many configurations

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>