from_data()
To improve readability and reduce indention levels some code was moved into their own functions. And a test case was added to the `secret()` test.