Smoothening Functions and the Homomorphism Learning Problem