[utils] add helper function.
[settings] clean up.