Move fbm functions to math modules