clean-up app factory