Change Config to RbConfig and remove unused vars

Change `Config` to `RbConfig` and remove unused vars