# Using Flask's app factory pattern