Remove usage of optional arguments to public methods #779