Separate config and functions files