Remove obsolete componentFromString method reference

This method is no longer used, replacing it with a different method to parse the component string.