lib: Use syntactic sugar