Extract a well-named function