Refactor setting module to admin module