replace deprecated method in component factory; closes #626