[CHEF-5162] Move argument parsing for source to new method