Cleaned up clear form class to only clear the elements from the config.