Extracting private method

As per the TODO item, extracting a private API (and private method).