Move separate_args function from header to source file.