Refactor: controller: simplify anonymous CIB update function
and make inline for better type checking