flash at45db161 refactoring