Moved some initialization logic from src/functions.php to here, since
putting application logic in public functions which callable without
any restriction is not good.
We do not need any inheritance or interface implementation here,
it's just simple POPO class.