style(util): move config and view to util module